package org.jeecg.modules.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 设备
 * @Author: jeecg-boot
 * @Date:   2022-03-09
 * @Version: V1.0
 */
@Data
@TableName("tig_device")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tig_device对象", description="设备")
public class TigDevice implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @Excel(name = "所属机构", width = 15)
    private java.lang.String sysOrgCode;
	/**设备名称*/
	@Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
    private java.lang.String name;
	/**设备IP*/
	@Excel(name = "设备IP", width = 15)
    @ApiModelProperty(value = "设备IP")
    private java.lang.String ipAddr;
	/**设备端口*/
	@Excel(name = "设备端口", width = 15)
    @ApiModelProperty(value = "设备端口")
    private java.lang.Integer port;
	/**在线状态*/
	@Excel(name = "在线状态", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "在线状态")
    private java.lang.Integer onStatus;
	/**上线时间*/
	//@Excel(name = "上线时间", width = 15)
    @ApiModelProperty(value = "上线时间")
    private java.util.Date onTime;
	/**离线时间*/
	//@Excel(name = "离线时间", width = 15)
    @ApiModelProperty(value = "离线时间")
    private java.util.Date offTime;
	/**影子名称*/
	@Excel(name = "影子名称", width = 15)
    @ApiModelProperty(value = "影子名称")
    private java.lang.String shadowName;
	/**是否激活*/
	@Excel(name = "是否激活", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否激活")
    private java.lang.Integer ison;
	/**所属产品*/
	@Excel(name = "所属产品", width = 15, dictTable = "tig_product", dicText = "name", dicCode = "id")
	@Dict(dictTable = "tig_product", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "所属产品")
    private java.lang.String productId;
}
